package _17作业._线程池编程题.t1;

import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

public class Test {
    public static void main(String[] args) throws ExecutionException, InterruptedException {
        ExecutorService pool = Executors.newFixedThreadPool(1);
        Future<Integer> submit = pool.submit(new MyCallable());
        Integer integer = submit.get();
        System.out.println(integer);
    }
}
